package com.huatai.saas.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * 修改工单信息的入参类
 */
@Data
@Accessors(chain = true)
public class UpdateOrderForUserDto {
	@ApiModelProperty("工单主键id")
	private Long id;

	@ApiModelProperty(value = "工单编号", required = true)
	@NotBlank(message = "工单编号不能为空")
	private String orderNumber;

	@ApiModelProperty(value = "父级id", required = true)
	private Long parentId;

	@ApiModelProperty(value = "子类id", required = true)
	private Long childId;

	@ApiModelProperty(value = "底板或场景名称", required = true)
	private String childName;

	@ApiModelProperty(value = "工单问题描述", required = true)
	@NotBlank(message = "问题描述不能为空")
	private String description;

	@ApiModelProperty(value = "联系电话", required = true)
	private String phone;

	@ApiModelProperty(value = "工单处理结果")
	private String result;

}
